

project(widgets)

find_package(Qt5 COMPONENTS Widgets Core WebEngine WebEngineWidgets)

file(GLOB_RECURSE  SRCS CONFIGURE_DEPENDS ./*.cpp)
source_group_by_dir(SRCS)

add_library(${PROJECT_NAME} SHARED
     ${SRCS}
     res/widgets.qrc
)

target_compile_options(${PROJECT_NAME} PRIVATE -DS_WIDGETS_DLL)
target_link_libraries(${PROJECT_NAME} Qt::Widgets Qt::WebEngine Qt::WebEngineWidgets)
target_link_libraries(${PROJECT_NAME} core)